import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wx
 * Date: 2024-03-10
 * Time: 10:33
 */
public class IODemo5 {
    public static void main(String[] args) {
        //创建目录
        /*File file = new File("./aaa/");
        boolean ret = file.mkdir();//需要在构造方法中把路径创建好,再通过 mkdir 来创建,返回类型是boolean
        System.out.println(ret);*/

        File file = new File("./aaa/bbb/ccc");
        //boolean ret = file.mkdir();//无法创建多级目录,需要使用mkdirs
        boolean ret = file.mkdirs();//创建多级目录
        System.out.println(ret);
    }
}
